<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>添加文章</title>
    <script type='text/javascript' src='http://localhost/kuangjia/hdphp/hdphp/../hdjs/jquery-1.8.2.min.js'></script>
<link href='http://localhost/kuangjia/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/kuangjia/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/kuangjia/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/kuangjia/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/daicms';
		WEB = 'http://localhost/daicms/index.php';
		URL = 'http://localhost/daicms/index.php?a=Admin&c=Article&m=add_art';
		HDPHP = 'http://localhost/kuangjia/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/kuangjia/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/kuangjia/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/kuangjia/hdphp/hdphp/Extend';
		APP = 'http://localhost/daicms/index.php?a=Admin';
		CONTROL = 'http://localhost/daicms/index.php?a=Admin&c=Article';
		METH = 'http://localhost/daicms/index.php?a=Admin&c=Article&m=add_art';
		GROUP = 'http://localhost/daicms/./Cms';
		TPL = 'http://localhost/daicms/./Cms/Cms/Admin/Tpl';
		CONTROLTPL = 'http://localhost/daicms/./Cms/Cms/Admin/Tpl/Article';
		STATIC = 'http://localhost/daicms/Static';
		PUBLIC = 'http://localhost/daicms/./Cms/Cms/Admin/Tpl/Public';
		HISTORY = 'http://localhost/daicms/index.php?a=Admin&c=Index&m=Index';
		HTTPREFERER = 'http://localhost/daicms/index.php?a=Admin&c=Index&m=Index';
</script>
    <link href="http://localhost/kuangjia/hdphp/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen"><script src="http://localhost/kuangjia/hdphp/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js"></script>
  <!--[if lte IE 6]>
  <link rel="stylesheet" type="text/css" href="http://localhost/kuangjia/hdphp/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
  <![endif]-->
      <!--[if lt IE 9]>
    <script src="http://localhost/kuangjia/hdphp/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
    <script src="http://localhost/kuangjia/hdphp/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="http://localhost/daicms/./Cms/Cms/Admin/Tpl/Article/css/css.css"/>
    <style type="text/css">
		.checkbox{
			 margin-left:5px;
			 width:90px;
			 margin-top: 10px;
		}
		textarea{
			width: 300px;
			height: 100px;
		}
    </style>
</head>
<body>
<div class="wrap">
    <div class="title-header">添加文章</div>
    <form action="" method="post" class="form-inline hd-form" enctype="multipart/form-data">
        <table class="table1">
            <tr>
                <th class="w100">文章标题</th>
                <td class="w100">
                    <input type="text" name="title" class="w200"/> 
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">作者</th>
                <td>
                    <input type="text" name="author" class="w200" value="admin"/>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">所属分类</th>
                <td>
                    <select name="category_cid" class="w200">
                        <?php if(is_array($cate)):?><?php  foreach($cate as $v){ ?>
                    	   <option value="<?php echo $v['cid'];?>"><?php echo $v['_html'];?><?php echo $v['cname'];?></option>
                        <?php }?><?php endif;?>
                    </select>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">文章摘要</th>
                <td>
                	 <script type="text/javascript" charset="utf-8" src="http://localhost/kuangjia/hdphp/hdphp/Extend/Org/Ueditor/ueditor.config.js"></script><script type="text/javascript" charset="utf-8" src="http://localhost/kuangjia/hdphp/hdphp/Extend/Org/Ueditor/ueditor.all.min.js"></script><script type="text/javascript">UEDITOR_HOME_URL="http://localhost/kuangjia/hdphp/hdphp/Extend/Org/Ueditor/"</script><script id="hd_digest" name="digest" type="text/plain"></script>
        <script type='text/javascript'>
        $(function(){
                var ue = UE.getEditor('hd_digest',{
                imageUrl:'http://localhost/daicms/index.php?a=Admin&c=Article&m=ueditor_upload&water=1&uploadsize=2000000&maximagewidth=false&maximageheight=false'//处理上传脚本
                ,zIndex : 0
                ,autoClearinitialContent:false
                ,initialFrameWidth:"300" //宽度1000
                ,initialFrameHeight:"150" //宽度1000
                ,autoHeightEnabled:false //是否自动长高,默认true
                ,autoFloatEnabled:false //是否保持toolbar的位置不动,默认true
                ,maximumWords:2000 //允许的最大字符数
                ,readonly : false //编辑器初始化结束后,编辑区域是否是只读的，默认是false
                ,wordCount:true //是否开启字数统计
                ,imagePath:''//图片修正地址
                , toolbars:[['FullScreen', 'Source', 'Undo', 'Redo','Bold','test','insertcode','preview']]//工具按钮
                , initialStyle:'p{line-height:1em; font-size: 14px; }'
            });
        })
        </script>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">缩略图</th>
                <td>
                    <input type="file" name="thumb[]" value="" />
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">文章属性</th>
                <td>
                	<label class="checkbox-inline">
						热门
						<input type="checkbox" value="热门" name="attr[]" class="check_input">
					</label>
					<label class="checkbox-inline">
						置顶
						<input type="checkbox" value="置顶" name="attr[]" class="check_input">
					</label>
					<label class="checkbox-inline">
						推荐
						<input type="checkbox" value="推荐" name="attr[]" class="check_input">
					</label>
					<label class="checkbox-inline">
						图文
						<input type="checkbox" value="图文" name="attr[]" class="check_input">
					</label>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100">文章标签</th>
                <td>
                    <?php if(is_array($tag)):?><?php  foreach($tag as $v){ ?>
                        <label class="checkbox-inline">
                            <input type="checkbox" name="tid[]" value="<?php echo $v['tid'];?>"/><?php echo $v['tagname'];?>
                        </label>
                     <?php }?><?php endif;?>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">文章关键字</th>
                <td>
                    <textarea name="keywords" id="" rows="10"></textarea>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">文章描述</th>
                <td>
                    <textarea name="description" id="" cols="30" rows="10"></textarea>
                </td>
                <td></td>
            </tr>
             <tr>
                <th class="w100">文章正文</th>
                <td class="w300">
                    <script id="hd_content" name="content" type="text/plain"></script>
        <script type='text/javascript'>
        $(function(){
                var ue = UE.getEditor('hd_content',{
                imageUrl:'http://localhost/daicms/index.php?a=Admin&c=Article&m=ueditor_upload&water=1&uploadsize=2000000&maximagewidth=false&maximageheight=false'//处理上传脚本
                ,zIndex : 0
                ,autoClearinitialContent:false
                ,initialFrameWidth:"600" //宽度1000
                ,initialFrameHeight:"200" //宽度1000
                ,autoHeightEnabled:false //是否自动长高,默认true
                ,autoFloatEnabled:false //是否保持toolbar的位置不动,默认true
                ,maximumWords:2000 //允许的最大字符数
                ,readonly : false //编辑器初始化结束后,编辑区域是否是只读的，默认是false
                ,wordCount:true //是否开启字数统计
                ,imagePath:''//图片修正地址
                , toolbars:[
            ['fullscreen', 'source', '|', 'undo', 'redo', '|',
                'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
                'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
                'directionalityltr', 'directionalityrtl', 'indent', '|',
                'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
                'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
                'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe','insertcode', 'pagebreak', 'template', 'background', '|',
                'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|',
                'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
                'print', 'preview', 'searchreplace', 'drafts']
            ]//工具按钮
                , initialStyle:'p{line-height:1em; font-size: 14px; }'
            });
        })
        </script>
                </td>
                <td></td>
            </tr>
            <tr>
                <th class="w100"></th>
                <td></td>
                <td></td>
            </tr>
            <tr>
                <th class="w100"></th>
                <td></td>
                <td></td>
            </tr>
        
        </table>
        <div class="position-bottom">
            <input type="submit" class="hd-success" value="添加"/>
        </div>
    </form>
</div>
</body>
</html>